﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.popups {
    import net.wooga.pets.loading.vos.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class InvitationRequestSuccessCommand extends Command {

        public var event:InfoEvent;

        override public function execute():void{
            this.sendTaskRequest();
        }
        private function sendTaskRequest():void{
            var _local1 = "Invitation";
            var _local2:Array = (this.event.info as Array);
            var _local3:Object = _local2.shift();
            var _local4:int = _local3.number_of_receivers;
            var _local5:Object = {taskType:GameConstants.INVITE_A_FRIEND, itemType:_local1, onResult:this.onResult, numActions:_local4};
            var _local6:Array = [new RequestVO("sendGift", {id:this.event.id})];
            var _local7:TaskRequestEvent = new TaskRequestEvent(EventConstants.SEND_TASK_REQUEST, _local6, _local5);
            dispatch(_local7);
        }
        private function onResult(_arg1:ResultVO):void{
            if (_arg1.success){
            };
        }

    }
}//package net.wooga.pets.controllers.popups 
